package com.leizhou.service.impl;

import com.leizhou.dao.AccountDao;
import com.leizhou.pojo.Accunt;
import com.leizhou.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*****
 * @Author: shenkunlin
 * @Date: 2019/7/11 10:51
 * @Description: com.changgou.service.impl
 ****/
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    /***
     * 查询集合数据
     * @return
     */
    @Override
    public List<Accunt> list() {
        return accountDao.list();
    }

    /***
     * 增加数据
     * @param accunt
     * @return
     */
    @Override
    public int add(Accunt accunt) {
        return accountDao.add(accunt);
    }

    @Override
    public int delete(Accunt accunt) {
        return accountDao.delete(accunt);
    }
}
